package com.gupao.jly521.strategy;

import com.gupao.jly521.strategy.Payment;
import com.gupao.jly521.strategy.impl.AliPay;
import com.gupao.jly521.strategy.impl.JdPay;

/**
 * @author Jly
 * @date 2018/8/24  14:06
 */
public enum PayType {

    ALIPAY(new AliPay()),
    JDPAY(new JdPay());

    private Payment payment;

    PayType(Payment payment) {
        this.payment = payment;
    }

    public Payment get(){
        return  this.payment;
    }
}
